//考试管理

import { request } from "@/utils/request"


//获取模拟考试信息
export function getMockExamInforAPI(){
    return request({
        url:'/admin/getMockExamInfor',
        method:'GET'
    })
}
//新增模拟考试
export function addMockExamInforAPI(data){
    return request({
        url:'/admin/addMockExamInforAPI',
        method:'PUT',
        data:data
    })
}
//删除模拟考试
export function deleteMockExamInforAPI(id){
    return request({
        url:`/admin/deleteMockExamInforAPI/${id}`,
        method:'DELETE'
    })
}

//获取正式考试信息
export function getExamInforAPI(){
    return request({
        url:'/admin/getExamInfor',
        method:'GET'
    })
}
//新增正式考试
export function addExamInforAPI(data){
    return request({
        url:'/admin/addExamInforAPI',
        method:'PUT',
        data:data
    })
}
//删除正式考试
export function deleteExamInforAPI(id){
    return request({
        url:`/admin/deleteExamInforAPI/${id}`,
        method:'DELETE'
    })
}